<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/




/*后台管理路由*/

//李飞写的后台品牌相关路由
Route::get('catelist','CateController@catelist');
Route::match(['post','get'],'/addcate','CateController@addCate');
Route::match(['post','get'],'/addcarxi','CateController@addCarxi');
Route::match(['post','get'],'catedit/{cate_id}','CateController@catedit');
Route::get('catedel/{cate_id}','CateController@catedel');


//曾令晨写的项目前台路由

Route::get('/maiche','MaicheController@index'); //买车
Route::get('fuwu','QdController@fuwu'); //服务
Route::get('mc','QdController@maiChe'); //卖车
Route::get('wenda','QdController@wenDa'); //二手问答
Route::get('fenqi','QdController@fenQi'); //分期购买
Route::get('appdown','QdController@appDown'); //app下载
Route::get('jingxuan','QdController@jingXuan'); //精选
Route::get('zhibao','QdController@zhiBao'); //质保
Route::get('ketui','QdController@keTui');//14天可退
Route::get('zhifu','QdController@zhiFu'); //瓜子支付

Route::get('newsall/{id?}','QdController@all'); //新闻全部
Route::get('knowledge/{id?}','QdController@knowledge'); //车辆知识
Route::get('story/{id?}','QdController@story'); //好车故事
Route::get('tuijian/{id?}','QdController@tuijian'); //好车推荐
Route::get('sartive/{xid}','QdController@sarTive');//新闻正文

Route::get('guanyu/{id?}','QdController@guanYu'); //关于我们
Route::get('lianxi/{id?}','QdController@lianXi'); //联系我们
Route::get('jiaru/{id?}','QdController@jiaRu'); //加入我们

Route::get('tiwen','QdController@tiwen');


//孙瑞越临时信息管理
Route::get('stlist','Admin\TemplistController@muserlist');
Route::get('btlist','Admin\TemplistController@buserlist');
Route::get('scheck/{sid}','Admin\TemplistController@musercheck');
Route::get('bcheck/{bid}','Admin\TemplistController@maijiashenhe');
Route::match(['get','post'],'addls','Admin\TemplistController@addls');

Route::get('/','IndexController@index');

//曾令晨写的后台路由
//车源添加
Route::get('addcar/{cyh}','CarController@getaddCar'); 
Route::post('addcar','CarController@postaddCar'); 
Route::get('ld/{cate_id}','CarController@cheXi'); 
//车源列表
Route::get('carlist','CarController@carList');
//卖家临时表单
Route::get('/msj/{msj}','CarController@maisj');
Route::get('delcar/{cid}','CarController@delcar');
Route::match(['post','get'],'editcar/{cid}','CarController@editCar');

//周金阳写的买家审核,后台的管理登录
Route::get('adminindex','BuyController@index'); 
Route::get('mjlb','BuyController@maijialist');
Route::get('mjsh','BuyController@mjsh');
Route::post('mjsh','BuyController@postmjsh');
Route::get('buyercheck/{bid}','BuyController@buyercheck');
Route::get('drop/{bid}','BuyController@bdrop');
Route::match(['get','post'] , 'beditor/{bid}','BuyController@beditor');
//注册
Route::get('auth/register', 'Auth\AuthController@getRegister');
Route::post('auth/register', 'Auth\AuthController@postRegister');
//登录
Route::get('auth/login', 'Auth\AuthController@getLogin');
Route::post('auth/login', 'Auth\AuthController@postLogin');
//退出
Route::get('auth/logout', 'Auth\AuthController@getLogout');
Route::get('home', function(){
	return view('admin/index');
});
//登录之后对账户的添加
Route::get('admin/reg','BuyController@reg');
Route::post('admin/reg','BuyController@postreg');
//品牌点击进入品牌下属车系
Route::get('catecar/{carid}/{carname}','CateController@catecar');


//杭坤写的卖家项目后台路由	
//卖家审查
Route::match(['get','post'] ,'/musercheck/{sid}','MuserController@musercheck');
//卖家列表
Route::get('muserchecklist','MuserController@muserchecklist');
//卖家列表修改
Route::match(['get','post'] ,'musercheckupdate/{id}','MuserController@musercheckupdate');
//卖家列表删除
Route::get('musercheckdelete/{id}','MuserController@musercheckdelete');


//胡成写的后台新闻路由


//胡成写的

//添加栏目
Route::get('newcate','NewsController@newcate');
Route::post('newcate','NewsController@newcate');
//栏目列表
Route::get('newcatelist','NewsController@newcatelist');
//编辑新闻
Route::get('editnew/{xid}','NewsController@editnew');
Route::post('editnew/{xid}','NewsController@editnew');
//删除新闻
Route::get('delnew/{xid}','NewsController@delnew');
//添加新闻
Route::get('addnew','NewsController@addnew');
Route::post('addnew','NewsController@postaddnew');
//新闻列表
Route::get('newlist/{id?}','NewsController@newlist');

//插入数据
Route::get('addsj','MaicheController@addsj');




/***前台路由***/

//前台页面 作者 李飞,孙瑞越,曾令城,周金阳

//周金阳写的前台,首页点击汽车图片进入汽车详情界面
Route::get('carsshow/{car_id}','CarController@carsshow');

//曾令晨写的项目前台路由
Route::get('/','IndexController@index');//主页
Route::get('fuwu','QdController@fuwu'); //服务
Route::get('mc','QdController@maiChe'); //卖车
Route::get('wenda','QdController@wenDa'); //二手问答
Route::get('fenqi','QdController@fenQi'); //分期购买
Route::get('appdown','QdController@appDown'); //app下载
Route::get('jingxuan','QdController@jingXuan'); //精选
Route::get('zhibao','QdController@zhiBao'); //质保
Route::get('ketui','QdController@keTui');//14天可退
Route::get('zhifu','QdController@zhiFu'); //瓜子支付

Route::get('newsall/{id?}','QdController@all'); //新闻全部
Route::get('knowledge/{id?}','QdController@knowledge'); //车辆知识
Route::get('story/{id?}','QdController@story'); //好车故事
Route::get('tuijian/{id?}','QdController@tuijian'); //好车推荐
Route::get('sartive/{xid}','QdController@sarTive');//新闻正文

Route::get('guanyu/{id?}','QdController@guanYu'); //关于我们
Route::get('lianxi/{id?}','QdController@lianXi'); //联系我们
Route::get('jiaru/{id?}','QdController@jiaRu'); //加入我们

//李飞项目前台路由
Route::get('/','IndexController@index');
Route::get('/maiche/{cate_id?}/{chexi_id?}/{pfw?}/{age?}/{car_type?}/{licheng?}/{biansu?}/{pailiang?}/{biaozhun?}/{paixu?}','MaicheController@index');

Route::get('/chaxun/{cate_id?}/{cate_name?}','MaicheController@mhcx');
Route::get('/fasong/{mobile}','AlidayuCOntroller@fasong');
Route::get('/yanzheng','AlidayuCOntroller@yanzheng');
